package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 评论管理对象 tour_comment
 *
 * @author once
 * @date 2020-10-02
 */
public class TourComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    private Long commentid;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userid;

    /**
     * 评论内容
     */
    @Excel(name = "评论内容")
    private String comment;

    /**
     * 所属类别
     */
    @Excel(name = "所属类别")
    private String type;

    /**
     * 评论对象ID
     */
    @Excel(name = "评论对象ID")
    private Long commentedid;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private String isDelete;

    /**
     * 当前状态
     */
    @Excel(name = "当前状态")
    private String status;

    /**
     * 审核管理员ID
     */
    @Excel(name = "审核管理员ID")
    private Long managerId;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    public void setCommentid(Long commentid) {
        this.commentid = commentid;
    }

    public Long getCommentid() {
        return commentid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setCommentedid(Long commentedid) {
        this.commentedid = commentedid;
    }

    public Long getCommentedid() {
        return commentedid;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public void setCreatetime(Date checkTime) {
        this.createtime = checkTime;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("commentid", getCommentid())
                .append("userid", getUserid())
                .append("comment", getComment())
                .append("type", getType())
                .append("commentedid", getCommentedid())
                .append("isDelete", getIsDelete())
                .append("createtime", getCreatetime())
                .append("status", getStatus())
                .append("managerId", getManagerId())
                .append("checkTime", getCheckTime())
                .toString();
    }
}
